<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${ctx!}/assets/layui/css/layui.css">
</head>
<script src="${ctx!}/assets/js/jquery.min.js?v=2.1.4"></script>
<body>

<div>


</div>
<!-- 你的HTML代码 -->
<script>
    $(document).ready(function(){
        var url='http://47.103.72.240/mg/mg/queryMgUser";
        $.ajax({
            url:url,
            dataType:'jsonp',
            processData: false,
            type:'get',
            success:function(data){
                alert(data.name);
            },
            error:function(XMLHttpRequest, textStatus, errorThrown) {
                alert(XMLHttpRequest.status);
                alert(XMLHttpRequest.readyState);
                alert(textStatus);
            }});
    });
</script>
</body>


</html>